<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://code.jquery.com/jquery-2.2.1.min.js" type="text/javascript"></script>

</head>
<button type="submit" onclick="sendMessage()">发送</button>
<footer>
    <div>
        <!--<p align=\"center\">\r\n\t<span style=\"font-size:14px;\"></span> \r\n</p>\r\n<p align=\"center\" style=\"text-align:center;margin-left:0cm;\">\r\n\t&nbsp; &nbsp;&nbsp;<span><a href=\"http://www.szbidding.com/xxgl/toXinXiDetail?guid=3e7882df-d1c8-492c-aabe-faf9c96cd4e5\" target=\"_blank\">通过电子招投标系统三星级检测认证链接</a></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\r\n</p>\r\n<p align=\"center\" style=\"text-align:center;margin-left:0cm;\">\r\n\t技术支持：&nbsp; &nbsp;深圳市友创恒达科技有限公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 广州竞宝信息技术有限公司版权所有&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备案号：粤ICP备15098315号-2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;粤公网安备\r\n44010502000963号\r\n</p>\r\n<p>\r\n\t<br />\r\n</p>\r\n<p align=\"center\">\r\n\t<span style=\"font-size:14px;\"></span><span style=\"font-size:14px;\"></span><span style=\"font-size:14px;\"></span><span style=\"font-size:14px;\"></span> \r\n</p>\r\n<span style=\"line-height:21px;font-size:14px;background-color:#FFFFFF;\"></span>-->
        <p align="center"><span style="font-size:14px;"></span></p><p align="center"style="text-align:center;margin-left:0cm;">&nbsp;&nbsp;&nbsp;<span><a href="http://www.szbidding.com/xxgl/toXinXiDetail?guid=3e7882df-d1c8-492c-aabe-faf9c96cd4e5"target="_blank">通过电子招投标系统三星级检测认证链接</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p><p align="center"style="text-align:center;margin-left:0cm;">技术支持：&nbsp;&nbsp;深圳市友创恒达科技有限公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;广州竞宝信息技术有限公司版权所有&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备案号：<a target="_blank" style="text-decoration:none;" href="https://beian.miit.gov.cn/#/Integrated/lawStatute">粤ICP备15098315号-2</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;粤公网安备44010502000963号</p><p><br/></p><p align="center"><span style="font-size:14px;"></span><span style="font-size:14px;"></span><span style="font-size:14px;"></span><span style="font-size:14px;"></span></p><span style="line-height:21px;font-size:14px;background-color:#FFFFFF;"></span>
<!--        <p align="center"><span style="font-size:14px;">技术支持：&nbsp;&nbsp;深圳市友创恒达科技有限公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;广州竞宝信息技术有限公司版权所有&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备案号：<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/lawStatute">粤ICP备15098315号-2</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;粤公网安备44010502000963号</span></p>-->
    </div>
    <div style="width: 300px;height: 300px">
        <img src="https://img-blog.csdnimg.cn/20210527125009774.jpg">
        <img src="https://img-blog.csdnimg.cn/20210527140423345.jpg">
    </div>
</footer>
<body>
<script type="text/javascript">
    function sendMessage() {
        test();
    }

    function test() {
        var json = [];
        for (var i = 1; i < 5; i++) {
            var j = {};
            j.supplierName = "测试" + i;
            j.contactPerson = "22" + i;
            j.contactPhone = "1361478258" + i;
            json.push(j);
        }
        var a = JSON.stringify(json);
        alert(a);
        var url = "http://localhost:9002/tUser/sendMessageToTbr";
        var message = "测试测试 202102241829 发送短信 测试";
        var dataForm = {};
        dataForm.potentialBidderListInfo = a;
        dataForm.message = message;
        var dataJson = JSON.stringify(dataForm);
        $.ajax({
            type: "POST",
            url: url,
            async: false,
            data: dataJson,
            dataType: "json",
            contentType: "application/json;charset=UTF-8",
            success: function (data) {
                console.log(data)
            }
        });

    }

    function testGet(){
        var url="";
        $.ajax({
            type: "POST",
            url: url,
            async: false,
            data: dataJson,
            dataType: "json",
            contentType: "application/json;charset=UTF-8",
            success: function (data) {
                console.log(data)
            }
        });
    }
</script>
</body>
</html>